//Controller for the settings page
function SettingsCtrl($scope,settings,$rootScope){
	$scope.settings=settings.getSettings();
	$scope.tooltipOptions=$scope.settings.tooltipOptions;
	$scope.tooltipOption=$scope.settings.tooltipOption;
    // $scope.tooltipOptions=settings.getSettings().getTooltipOptions();
    // $scope.tooltipOption=settings.getSettings().getTooltipOption();

	$scope.$watch('tooltipOption',function(tooltipOptionValue){
		$scope.settings.tooltipOption=tooltipOptionValue;
		// settings.getSettins().setTooltipOption(tooltipOptionValue);
	});
};
SettingsCtrl.$inject=['$scope','KaffipadSettings','$rootScope'];